class CreateDepositos < ActiveRecord::Migration
  def self.up
    create_table :depositos do |t|
      t.string :nome
      t.integer :qtbox
      t.string :cor
      t.timestamps
    end

    Deposito.create(:id => 1, :nome => "AURORA", :qtbox => 3, :cor => "Vermelho")
    Deposito.create(:id => 2, :nome => "VIPEX", :qtbox => 3, :cor => "Verde")
    Deposito.create(:id => 3, :nome => "CD", :qtbox => 5, :cor => "Azul")
    Deposito.create(:id => 4, :nome => "BAYEUX", :qtbox => 4, :cor => "Roxo")
    Deposito.create(:id => 5, :nome => "SALUTE", :qtbox => 4, :cor => "Amarelo")     

  end

  def self.down
    drop_table :depositos
  end
end
